#ifndef SIGNATUREBOX_H
#define SIGNATUREBOX_H

#include <QWidget>
#include <QPushButton>
#include <QMouseEvent>
#include <QPainter>
#include <QVector>

namespace Ui {
class signatureBox;
}

class signatureBox : public QWidget
{
    Q_OBJECT

public:
    explicit signatureBox(QWidget *parent = nullptr);
    ~signatureBox();

signals:
    void sendBoxSin(QString);   //用来传递此窗口和签名主窗口信号

private:
    Ui::signatureBox *ui;

//    QPainter *paint;

    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    void paintEvent(QPaintEvent *);
    QVector<QVector<QPoint>>_lines;
};

#endif // SIGNATUREBOX_H
